Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 vector-feature-night-mode-enabled skin-theme-clientpref-os vector-sticky-header-enabled" lang="fr" dir="ltr"><head>
<meta charset="UTF-8">
<title>Service (Windows)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./_res_/favicon.png">
<link rel="canonical" href="https://fr.wikipedia.org/wiki/Service_(Windows)"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
<link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
<link rel="stylesheet" type="text/css" href="./_res_/footer.css">
<link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Service_Windows rootpage-Service_Windows skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Service (Windows)</span></h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="contentSub">
<div id="mw-content-subtitle"></div>
</div>
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="fr" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="fr" dir="ltr">
<p>Dans les <a href="Syst%C3%A8mes_d'exploitation" class="mw-redirect" title="Systèmes d'exploitation">systèmes d'exploitation</a> de type <a href="Windows_NT" title="Windows NT">Windows NT</a>, un <b>service</b> (ou <b>service Windows</b>) est un <a href="Programme_informatique" title="Programme informatique">programme</a> qui <a href="T%C3%A2che_de_fond" title="Tâche de fond">fonctionne en arrière-plan</a><sup id="cite_ref-Services_snap-in_1-0" class="reference"><a href="#cite_note-Services_snap-in-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>. Il est similaire à un <a href="Daemon_(informatique)" title="Daemon (informatique)">daemon</a> d'<a href="Unix" title="Unix">Unix</a><sup id="cite_ref-Services_snap-in_1-1" class="reference"><a href="#cite_note-Services_snap-in-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>. Un service doit se conformer aux règles d'interface et aux <a href="Protocole_informatique" title="Protocole informatique">protocoles</a> du <i><a href="Service_Control_Manager" title="Service Control Manager">Service Control Manager</a></i>, le composant chargé de la gestion des services<sup id="cite_ref-Service_MSDN_2-0" class="reference"><a href="#cite_note-Service_MSDN-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>.
</p><p>Les services peuvent être configurés pour démarrer lorsque le système d'exploitation est démarré et fonctionner en arrière-plan tant que <a href="Windows" class="mw-redirect" title="Windows">Windows</a> est en cours d'exécution. En variante, ils peuvent être lancés manuellement par l'utilisateur ou par un événement qui a besoin du service. Les systèmes d'exploitation de type Windows NT incluent de nombreux services. Les services sont rattachés à trois comptes d'utilisateur&nbsp;: le compte <i>Système</i>, le compte <i>Service réseau</i> et le compte <i>Service local</i>. Parce que les services sont associés à leurs propres comptes utilisateur dédiés, ils peuvent fonctionner sans qu'un utilisateur soit connecté au système d'exploitation. Les services sont souvent associés à des <a href="Svchost.exe" title="Svchost.exe">processus hôtes pour les services Windows</a>. Le <a href="Common_Information_Model" title="Common Information Model">Common Information Model</a>, représente un service Windows avec la classe <i>Win32_Service</i><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup>.
</p><p>Avant <a href="Windows_Vista" title="Windows Vista">Windows Vista</a>, les services installés comme <i>services interactifs</i> peuvent interagir avec le <a href="Environnement_de_bureau" title="Environnement de bureau">bureau de Windows</a> et afficher une <a href="Interface_utilisateur_graphique" class="mw-redirect" title="Interface utilisateur graphique">interface utilisateur graphique</a>. Cependant, dans Windows Vista, les services interactifs sont <a href="D%C3%A9pr%C3%A9ciation_(informatique)" class="mw-redirect" title="Dépréciation (informatique)">dépréciés</a> et peuvent ne pas fonctionner correctement par suite du resserrement des règles de sécurité de Windows Vista<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup><sup class="reference cite_virgule">,</sup><sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>.
</p>

<div class="mw-heading mw-heading2"><h2 id="Développement"><span id="D.C3.A9veloppement"></span>Développement</h2></div>
<p>Un service est tout d'abord un programme créé en utilisant des <a href="Kit_de_d%C3%A9veloppement" title="Kit de développement">outils de développement</a> tels que <a href="Microsoft_Visual_Studio" title="Microsoft Visual Studio">Microsoft Visual Studio</a> ou <a href="Embarcadero_Delphi" class="mw-redirect" title="Embarcadero Delphi">Embarcadero Delphi</a>. Pour être un service, un programme doit être écrit de telle manière qu'il peut traiter des messages <i>démarrer</i>, <i>arrêter</i> et <i>mettre en pause</i> provenant du <i><a href="Service_Control_Manager" title="Service Control Manager">Service Control Manager</a></i>. <i><a href="Service_Control_Manager" title="Service Control Manager">Service Control Manager</a></i> est un composant de <a href="Windows" class="mw-redirect" title="Windows">Windows</a> qui est responsable du démarrage et de l'arrêt des services.
</p><p>Le <i>Windows <a href="Resource_Kit" title="Resource Kit">Resource Kit</a></i> de <a href="Windows_NT" title="Windows NT">Windows NT</a> 3.51, Windows NT 4.0 et <a href="Windows_2000" title="Windows 2000">Windows 2000</a> fournit des outils pour contrôler l'utilisation et l'enregistrement des services
</p>
<div class="mw-heading mw-heading2"><h2 id="Références"><span id="R.C3.A9f.C3.A9rences"></span>Références</h2></div>
<div class="references-small decimal" style=""><div class="mw-references-wrap"><ol class="references">
<li id="cite_note-Services_snap-in-1"><span class="reference-text"><span class="ouvrage">«&nbsp;<a rel="nofollow" class="external text" href="https://technet.microsoft.com/en-us/library/cc783643%28v=ws.10%29.aspx"><cite style="font-style:normal;">Services overview</cite></a>&nbsp;», <span class="italique"><a href="Microsoft_TechNet" title="Microsoft TechNet">TechNet</a></span>, <i>Microsoft</i> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2013-03-29" data-sort-value="2013-03-29">29 mars 2013</time>)</small></span></span>
</li>
<li id="cite_note-Service_MSDN-2"><span class="mw-cite-backlink"><a href="#cite_ref-Service_MSDN_2-0">↑</a> </span><span class="reference-text"><span class="ouvrage">«&nbsp;<a rel="nofollow" class="external text" href="http://msdn2.microsoft.com/en-us/library/ms685141.aspx"><cite style="font-style:normal;">Services</cite></a>&nbsp;», <span class="italique"><a href="Microsoft_Developer_Network" title="Microsoft Developer Network">Microsoft Developer Network</a></span>, <i>Microsoft</i> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2013-03-29" data-sort-value="2013-03-29">29 mars 2013</time>)</small></span></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3">↑</a> </span><span class="reference-text"><a rel="nofollow" class="external text" href="https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-service">Win32_Service class</a></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a> </span><span class="reference-text"><span class="ouvrage" id="2008">«&nbsp;<a rel="nofollow" class="external text" href="https://technet.microsoft.com/en-us/magazine/2008.06.elevation.aspx"><cite style="font-style:normal;">New Elevation PowerToys for Windows Vista</cite></a>&nbsp;», <span class="italique">TechNet Magazine</span>, <i><a href="Microsoft" title="Microsoft">Microsoft</a></i>, <time class="nowrap" datetime="2008-06" data-sort-value="2008-06">juin 2008</time> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2013-06-21" data-sort-value="2013-06-21">21 juin 2013</time>)</small></span>&nbsp;: <span class="citation">«&nbsp;The service CmdAsSystem is configured as interactive whose support is being deprecated. The service may not function properly. The problem is that this script tries to create and start an interactive service. Interactive services will not function correctly due to Session 0 Isolation in Windows Vista.&nbsp;»</span></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><a href="#cite_ref-5">↑</a> </span><span class="reference-text"><span class="ouvrage" id="2010">«&nbsp;<a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/windows/hardware/gg463428.aspx"><cite style="font-style:normal;">Services in Windows</cite></a>&nbsp;», <span class="italique"><a href="MSDN" class="mw-redirect" title="MSDN">MSDN</a></span>, <i><a href="Microsoft" title="Microsoft">Microsoft</a></i>, <time class="nowrap" datetime="2010-10-18" data-sort-value="2010-10-18">18 octobre 2010</time> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2013-06-21" data-sort-value="2013-06-21">21 juin 2013</time>)</small></span></span>
</li>
</ol></div>
</div>
<ul><li><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr> Cet article est partiellement ou en totalité issu de l’article de Wikipédia en anglais intitulé <span class="">«&nbsp;<a class="external text" href="https://en.wikipedia.org/wiki/Windows_service?oldid=586626758">Windows service</a>&nbsp;» <small>(<a class="external text" href="https://en.wikipedia.org/wiki/Windows_service?action=history">voir la liste des auteurs</a>)</small></span>.</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Voir_aussi">Voir aussi</h2></div>
<div class="mw-heading mw-heading3"><h3 id="Liens_externes">Liens externes</h3></div>
<ul><li><span class="ouvrage" id="Savill1999"><span class="ouvrage" id="John_Savill1999">John <span class="nom_auteur">Savill</span>, «&nbsp;<a rel="nofollow" class="external text" href="http://windowsitpro.com/windows/what-are-errorcontrol-start-and-type-values-under-services-subkeys"><cite style="font-style:normal;">What are the ErrorControl, Start and Type values under the Services subkeys?</cite></a>&nbsp;», <span class="italique">Windows IT Pro&nbsp;<a href="https://en.wikipedia.org/wiki/Windows_IT_Pro" class="extiw external" title="en:Windows IT Pro"><span class="indicateur-langue" title="Article en anglais&nbsp;: «&nbsp;Windows IT Pro&nbsp;»">(en)</span></a></span>, <i>Penton Media&nbsp;<a href="https://en.wikipedia.org/wiki/Penton_Media" class="extiw external" title="en:Penton Media"><span class="indicateur-langue" title="Article en anglais&nbsp;: «&nbsp;Penton Media&nbsp;»">(en)</span></a></i>, <time class="nowrap" datetime="1999-03-05" data-sort-value="1999-03-05">5 mars 1999</time> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2013-03-29" data-sort-value="2013-03-29">29 mars 2013</time>)</small></span></span></li>
<li>David B. Probert, <a rel="nofollow" class="external text" href="http://www.i.u-tokyo.ac.jp/edu/training/ss/lecture/new-documents/Lectures/11-WindowsServices/WindowsServices.ppt">Windows Service Processes</a></li></ul>
<div class="mw-heading mw-heading3"><h3 id="Articles_connexes">Articles connexes</h3></div>
<ul><li><a href="Service_wrapper" title="Service wrapper">Service wrapper</a></li></ul>
<div class="navbox-container" style="clear:both;">

</div>
<ul id="bandeau-portail" class="bandeau-portail"><li><span class="bandeau-portail-element"><span class="bandeau-portail-icone"><span class="noviewer" typeof="mw:File"></span></span> <span class="bandeau-portail-texte">Portail de Microsoft</span> </span></li> </ul></div><!--htdig_noindex--><div><div class="zim-footer">
Cet article est issu de <a class="external text" title="Dernière modification le 2022-08-03" href="https://fr.wikipedia.org/wiki/?title=Service_(Windows)&amp;oldid=195809804">Wikipédia</a>. Sauf mention contraire, le texte est disponible sous <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.fr">Creative Commons Attribution-Share Alike 4.0</a>. Des conditions supplémentaires peuvent s’appliquer aux fichiers multimédias.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
<script src="./_webp_/webpHandler.js"></script>

</body></html>